package com.tang.model.proxy.staticproxy;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/17 6:11
 * @Desc
 * @Remarks
 */
public class WorkerProxy implements Person {
    private Worker worker;

    public WorkerProxy(Worker worker) {
        this.worker = worker;
    }

    @Override
    public void findHouse() {
        System.out.println("我是中介，我为你提供服务！您的要求是：");
        worker.findHouse();
        System.out.println("我现在已经为您找到了合适的房源！");
    }
}
